﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/Guest.Master" AutoEventWireup="true"
    CodeBehind="Tracking.aspx.cs" Inherits="Ryder_US_Website.Presentation.Guest.Tracking"
    Title="Tracking" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript">
        function validateForm() {
            if (document.getElementById('<%= txtIDCargo.ClientID %>').value == "" || document.getElementById('<%= txtIDCargo.ClientID %>').value.length < 1) {
                alert("Chưa nhập mã đặt hàng");
                document.getElementById('<%= txtIDCargo.ClientID %>').focus();
            }
            else
                return true;
            return false;
        }
    </script>
    <style type="text/css">
        .dtvHeader 
        {
        	padding-right: 10px;
        	padding-top: 2px;
        	padding-bottom: 2px;
        }
        
        .dtvContent 
        {
        	padding-left: 10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="title">
        <asp:Label ID="lbTracking" runat="server" Text="Tracking"></asp:Label>
    </h1>
    <p>
        &nbsp;</p>
    <form id="form1" method="post" action="">
    <p align="center" id="dtvService">
        <asp:Label ID="LabelTracking" runat="server" Text="ID"
            Font-Size="Medium"></asp:Label>&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtIDCargo" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;
        <asp:Button ID="ButtonOK" runat="server" Text="View" CssClass="button" 
            OnClientClick="return validateForm();" onclick="ButtonOK_Click"></asp:Button>
            <p><br/></p>
        <asp:DetailsView ID="dtvCargo" runat="server" BackColor="LightGoldenrodYellow" 
            BorderColor="Tan" BorderWidth="2px" ForeColor="Black" CellPadding="5"
            GridLines="Horizontal" Width="100%" Font-Size="Medium">
            <FooterStyle BackColor="Tan" />
            <FieldHeaderStyle Width="30%" HorizontalAlign="Right" Font-Bold="true" CssClass="dtvHeader" />
            <RowStyle HorizontalAlign="Left" CssClass="dtvContent" />
            <HeaderStyle BackColor="Tan" Font-Bold="True"/>
        </asp:DetailsView>
    </p>
    </form>
</asp:Content>
